function [ ] = plotDeformation( tri, rx, ry, dx, dy )
%PLOTDEFORMATION Summary of this function goes here
%   Detailed explanation goes here

% bn = size(domain2D.x', 1);
% 
% cons = zeros(bn, 2);
% cons(:, 1) = domain2D.e1;
% cons(:, 2) = domain2D.e2;

px = [rx];
py = [ry];

% bx = bx * 0;
% by = by * 0;
% 
% fx = [bx; dx];
% fy = [by; dy];

% fx = fx * 0;
% fy = fy * 0;

% n1 = size(domain2D.vx, 1);
% n2 = size(rx, 1);

% dx(:) = 0;
% dy(:) = 0;

px = px + dx;
py = py + dy;

n = size(px, 1);

figure;

% dt = DelaunayTri(px,py,cons);
% io = dt.inOutStatus();
% tri = dt(io, :);

trisurf(tri, px, py, zeros(n, 1));

view(2);

axis ( [ -1, 1, -1, 1] );
% caxis( [ 0.85, 1.15] );
axis square;

colorbar;

end

